package cn.sunlelin.educationserver.service;

import cn.sunlelin.educationserver.entity.Task;

import java.util.List;
import java.util.Map;

public interface TaskService {
    public Boolean createTask(Task task);
    public Boolean updateTask(Task task);
    public Task selectTaskById(Integer taskId);

    public List<Map<String,Object>> selectTaskByCourseId(Integer courseId, Integer userId);

    public List<Task> selectTaskByChapterId(Integer chapterId);

    public Boolean deleteTask(Integer taskId);
}
